﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200102F RID: 4143
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournGetPermanentTalentInfoScRsp : IMessage<RogueTournGetPermanentTalentInfoScRsp>, IMessage, IEquatable<RogueTournGetPermanentTalentInfoScRsp>, IDeepCloneable<RogueTournGetPermanentTalentInfoScRsp>, IBufferMessage
	{
		// Token: 0x17003458 RID: 13400
		// (get) Token: 0x0600B947 RID: 47431 RVA: 0x001F359F File Offset: 0x001F179F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournGetPermanentTalentInfoScRsp> Parser
		{
			get
			{
				return RogueTournGetPermanentTalentInfoScRsp._parser;
			}
		}

		// Token: 0x17003459 RID: 13401
		// (get) Token: 0x0600B948 RID: 47432 RVA: 0x001F35A6 File Offset: 0x001F17A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournGetPermanentTalentInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700345A RID: 13402
		// (get) Token: 0x0600B949 RID: 47433 RVA: 0x001F35B8 File Offset: 0x001F17B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournGetPermanentTalentInfoScRsp.Descriptor;
			}
		}

		// Token: 0x0600B94A RID: 47434 RVA: 0x001F35BF File Offset: 0x001F17BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournGetPermanentTalentInfoScRsp()
		{
		}

		// Token: 0x0600B94B RID: 47435 RVA: 0x001F35C8 File Offset: 0x001F17C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournGetPermanentTalentInfoScRsp(RogueTournGetPermanentTalentInfoScRsp other) : this()
		{
			this.permanentInfo_ = ((other.permanentInfo_ != null) ? other.permanentInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B94C RID: 47436 RVA: 0x001F3614 File Offset: 0x001F1814
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournGetPermanentTalentInfoScRsp Clone()
		{
			return new RogueTournGetPermanentTalentInfoScRsp(this);
		}

		// Token: 0x1700345B RID: 13403
		// (get) Token: 0x0600B94D RID: 47437 RVA: 0x001F361C File Offset: 0x001F181C
		// (set) Token: 0x0600B94E RID: 47438 RVA: 0x001F3624 File Offset: 0x001F1824
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournPermanentTalentInfo PermanentInfo
		{
			get
			{
				return this.permanentInfo_;
			}
			set
			{
				this.permanentInfo_ = value;
			}
		}

		// Token: 0x1700345C RID: 13404
		// (get) Token: 0x0600B94F RID: 47439 RVA: 0x001F362D File Offset: 0x001F182D
		// (set) Token: 0x0600B950 RID: 47440 RVA: 0x001F3635 File Offset: 0x001F1835
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600B951 RID: 47441 RVA: 0x001F363E File Offset: 0x001F183E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournGetPermanentTalentInfoScRsp);
		}

		// Token: 0x0600B952 RID: 47442 RVA: 0x001F364C File Offset: 0x001F184C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournGetPermanentTalentInfoScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.PermanentInfo, other.PermanentInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B953 RID: 47443 RVA: 0x001F369C File Offset: 0x001F189C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.permanentInfo_ != null)
			{
				num ^= this.PermanentInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B954 RID: 47444 RVA: 0x001F36F1 File Offset: 0x001F18F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B955 RID: 47445 RVA: 0x001F36F9 File Offset: 0x001F18F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B956 RID: 47446 RVA: 0x001F3704 File Offset: 0x001F1904
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this.permanentInfo_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.PermanentInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B957 RID: 47447 RVA: 0x001F3760 File Offset: 0x001F1960
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.permanentInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.PermanentInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B958 RID: 47448 RVA: 0x001F37B8 File Offset: 0x001F19B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournGetPermanentTalentInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.permanentInfo_ != null)
			{
				if (this.permanentInfo_ == null)
				{
					this.PermanentInfo = new RogueTournPermanentTalentInfo();
				}
				this.PermanentInfo.MergeFrom(other.PermanentInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B959 RID: 47449 RVA: 0x001F3820 File Offset: 0x001F1A20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B95A RID: 47450 RVA: 0x001F382C File Offset: 0x001F1A2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 96U)
				{
					if (num != 106U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.permanentInfo_ == null)
						{
							this.PermanentInfo = new RogueTournPermanentTalentInfo();
						}
						input.ReadMessage(this.PermanentInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004AA0 RID: 19104
		private static readonly MessageParser<RogueTournGetPermanentTalentInfoScRsp> _parser = new MessageParser<RogueTournGetPermanentTalentInfoScRsp>(() => new RogueTournGetPermanentTalentInfoScRsp());

		// Token: 0x04004AA1 RID: 19105
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004AA2 RID: 19106
		public const int PermanentInfoFieldNumber = 13;

		// Token: 0x04004AA3 RID: 19107
		private RogueTournPermanentTalentInfo permanentInfo_;

		// Token: 0x04004AA4 RID: 19108
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04004AA5 RID: 19109
		private uint retcode_;
	}
}
